<template>
	<div style="text-align: left;">
		<span v-for="(item,index) in lineTrip1" >
			【{{item.dates}}】{{lineTrip1view(item.view)}}<br/>
		</span>
	</div>
</template>

<script>
import * as LineTripApi from '@/api/team/linetrip';
export default {
	props: ['ids'],
	data() {
	    return {
			lineTrip1:[],
		}
	},		
	created() {
	 this.getOrdeLine(this.ids)
	},
	methods: {
			//查询订单行程
			async getOrdeLine(id){
				this.lineTrip1=[]
				try {
				const res = await LineTripApi.getLineTripPage({column2:id,type:2});
				console.log('查询订单行程模板信息',res.data.list);
				// this.lineTrip1view(res.data.list.view)
				//return "这是动态创建的p标签文字<br/>12131"
				  this.lineTrip1=res.data.list
				} finally {
				
				}
			},
			lineTrip1view(row){
					  return JSON.parse(row).map(item => item.name).join('>')
					  
			},
			
	}	  
  
}
	
</script>

<style>
</style>